<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org" th:fragment="part">
<head>
    <title>updateOUser</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/css/style.css}" />
</head>
<body>
<div id="wrap">
    <div id="wrapper">
        <ul class="first">
            <li><a href="/om/viewOUser">组织党员管理</a></li>
            <li><a href="/om/viewDGroup">组织管理</a></li>
            <li><a href="/om/viewOPost">组织帖子管理</a></li>
        </ul>
    </div>
    <div id="big">
        <div id="top_content">
            <div id="content">
                <form th:action="@{update1}" method="get" enctype="multipart/form-data">
                    <table cellpadding="0" cellspacing="0" border="0"
                    class="form_table">
                        <tr>
                            <td valign="middle" align="right">
                                用户名:
                            </td>
                            <td valign="middle" align="left">
                                <span th:text="${ousers.username}"></span>
                                <input type="hidden" name="username" th:value="${ousers.username}">
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right">
                                姓名:
                            </td>
                            <td valign="middle" align="left">
                                <span th:text="${ousers.realname}"></span>
                                <input type="hidden" name="realname" th:value="${ousers.realname}">
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right">
                                角色:
                            </td>
                            <td valign="middle" align="left">
                                <select  class="inputgri" style="width: 200px" name="role">
                                    <option th:unless="${ousers.role == frall.role}"
                                            th:each="frall,status:${frAllList}"
                                            th:text="${frall.role}"
                                            th:value="${frall.role}">
                                    <option th:if="${ousers.role == frall.role}"
                                            th:each="frall,status:${frAllList}"
                                            th:value="${ousers.role}"
                                            th:text="${ousers.role}" selected>
                                    </option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right">
                                组织:
                            </td>
                            <td valign="middle" align="left">
                                <select class="inputgri" style="width: 200px" name="gname">
                                    <option th:unless="${ousers.gname == fgall.gname}"
                                            th:each="fgall,status:${fgAllList}"
                                            th:text="${fgall.gname}"
                                            th:value="${fgall.gname}">
                                    <option th:if="${ousers.gname == fgall.gname}"
                                            th:each="fgall,status:${fgAllList}"
                                            th:value="${fgall.gname}"
                                            th:text="${fgall.gname}" selected>
                                    </option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td valign="middle" align="right">
                                手机号:
                            </td>
                            <td valign="middle" align="left">
                                <span th:text="${ousers.phone}"></span>
                                <input type="hidden" name="phone" th:value="${ousers.phone}">
                            </td>
                        </tr>
                    </table>
                    <p>
                        <input type="submit" style="width: 75px" class="button" value="更新" />
                        <input type="button" style="width: 75px" class="button" value="返回" onclick="rview()" />
                        <script>
                            function rview(){
                                location.href = '[[@{/om/viewOUser}]]';
                            }
                        </script>
                    </p>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>